Optimal. Leaf size=265 \[ \frac {a^{5/2} (400 A+283 C) \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{128 d}+\frac {a^3 (400 A+283 C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (1040 A+787 C) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{960 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (80 A+79 C) \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{240 d}+\frac {a C \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{8 d}+\frac {C \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.52, antiderivative size = 265, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 37, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.162, Rules used = {4174, 4103,
4101, 3888, 3886, 221} \begin {gather*} \frac {a^{5/2} (400 A+283 C) \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{128 d}+\frac {a^3 (1040 A+787 C) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{960 d \sqrt {a \sec (c+d x)+a}}+\frac {a^3 (400 A+283 C) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{128 d \sqrt {a \sec (c+d x)+a}}+\frac {a^2 (80 A+79 C) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}{240 d}+\frac {a C \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x) (a \sec (c+d x)+a)^{3/2}}{8 d}+\frac {C \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x) (a \sec (c+d x)+a)^{5/2}}{5 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 221
Rule 3886
Rule 3888
Rule 4101
Rule 4103
Rule 4174
Rubi steps
\begin {align*} \int \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \left (A+C \sec ^2(c+d x)\right ) \, dx &=\frac {C \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d}+\frac {\int \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \left (\frac {1}{2} a (10 A+3 C)+\frac {5}{2} a C \sec (c+d x)\right ) \, dx}{5 a}\\ &=\frac {a C \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{8 d}+\frac {C \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d}+\frac {\int \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \left (\frac {1}{4} a^2 (80 A+39 C)+\frac {1}{4} a^2 (80 A+79 C) \sec (c+d x)\right ) \, dx}{20 a}\\ &=\frac {a^2 (80 A+79 C) \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{240 d}+\frac {a C \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{8 d}+\frac {C \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d}+\frac {\int \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \left (\frac {3}{8} a^3 (240 A+157 C)+\frac {1}{8} a^3 (1040 A+787 C) \sec (c+d x)\right ) \, dx}{60 a}\\ &=\frac {a^3 (1040 A+787 C) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{960 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (80 A+79 C) \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{240 d}+\frac {a C \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{8 d}+\frac {C \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d}+\frac {1}{128} \left (a^2 (400 A+283 C)\right ) \int \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {a^3 (400 A+283 C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (1040 A+787 C) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{960 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (80 A+79 C) \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{240 d}+\frac {a C \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{8 d}+\frac {C \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d}+\frac {1}{256} \left (a^2 (400 A+283 C)\right ) \int \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {a^3 (400 A+283 C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (1040 A+787 C) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{960 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (80 A+79 C) \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{240 d}+\frac {a C \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{8 d}+\frac {C \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d}-\frac {\left (a^2 (400 A+283 C)\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{a}}} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{128 d}\\ &=\frac {a^{5/2} (400 A+283 C) \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{128 d}+\frac {a^3 (400 A+283 C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (1040 A+787 C) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{960 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (80 A+79 C) \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{240 d}+\frac {a C \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{8 d}+\frac {C \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.98, size = 273, normalized size = 1.03 \begin {gather*} \frac {\cos ^3(c+d x) (a (1+\sec (c+d x)))^{5/2} \left (A+C \sec ^2(c+d x)\right ) \left ((20560 A+24863 C+12 (1360 A+2343 C) \cos (c+d x)+4 (6640 A+6509 C) \cos (2 (c+d x))+5440 A \cos (3 (c+d x))+5660 C \cos (3 (c+d x))+6000 A \cos (4 (c+d x))+4245 C \cos (4 (c+d x))) \sec ^{\frac {11}{2}}(c+d x) \sqrt {1+\sec (c+d x)} \tan \left (\frac {1}{2} (c+d x)\right )-120 (400 A+283 C) \csc (c+d x) \left (\log (1+\sec (c+d x))-\log \left (\sqrt {\sec (c+d x)}+\sec ^{\frac {3}{2}}(c+d x)+\sqrt {1+\sec (c+d x)} \sqrt {\tan ^2(c+d x)}\right )\right ) \sqrt {\tan ^2(c+d x)}\right )}{7680 d (A+2 C+A \cos (2 (c+d x))) (1+\sec (c+d x))^{5/2}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(513\) vs.
\(2(227)=454\).
time = 21.08, size = 514, normalized size = 1.94
method | result | size |
default | \(-\frac {\left (6000 A \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (1+\cos \left (d x +c \right )-\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right ) \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right )-6000 A \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (1+\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right ) \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right )+4245 C \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right ) \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (1+\cos \left (d x +c \right )-\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right )-4245 C \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right ) \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (1+\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right )-12000 A \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \left (\cos ^{4}\left (d x +c \right )\right )-8490 C \left (\cos ^{4}\left (d x +c \right )\right ) \sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}-5440 A \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \left (\cos ^{3}\left (d x +c \right )\right )-5660 C \sin \left (d x +c \right ) \left (\cos ^{3}\left (d x +c \right )\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}-1280 A \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}-4528 C \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}-2784 C \sin \left (d x +c \right ) \cos \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}-768 C \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {3}{2}} \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (\cos ^{2}\left (d x +c \right )-1\right ) a^{2}}{7680 d \cos \left (d x +c \right )^{3} \sin \left (d x +c \right )^{2}}\) | \(514\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 8852 vs.
\(2 (227) = 454\).
time = 1.58, size = 8852, normalized size = 33.40 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.68, size = 546, normalized size = 2.06 \begin {gather*} \left [\frac {15 \, {\left ({\left (400 \, A + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{5} + {\left (400 \, A + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{4}\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} - \frac {4 \, {\left (\cos \left (d x + c\right )^{2} - 2 \, \cos \left (d x + c\right )\right )} \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}} + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right ) + \frac {4 \, {\left (15 \, {\left (400 \, A + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{4} + 10 \, {\left (272 \, A + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{3} + 8 \, {\left (80 \, A + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{2} + 1392 \, C a^{2} \cos \left (d x + c\right ) + 384 \, C a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{7680 \, {\left (d \cos \left (d x + c\right )^{5} + d \cos \left (d x + c\right )^{4}\right )}}, \frac {15 \, {\left ({\left (400 \, A + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{5} + {\left (400 \, A + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{4}\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) - 2 \, a}\right ) + \frac {2 \, {\left (15 \, {\left (400 \, A + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{4} + 10 \, {\left (272 \, A + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{3} + 8 \, {\left (80 \, A + 283 \, C\right )} a^{2} \cos \left (d x + c\right )^{2} + 1392 \, C a^{2} \cos \left (d x + c\right ) + 384 \, C a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{3840 \, {\left (d \cos \left (d x + c\right )^{5} + d \cos \left (d x + c\right )^{4}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \left (A+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________